﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Login" 
    MasterPageFile="~/Unlogged.master"%>

<asp:Content ContentPlaceHolderID="contentPlaceHolder" runat="server">
    <%-- div style="clear:right, left; height: 124px;">
        <div style="text-align: left; width: 13%; clear: none; float: left; font-size: 1.1em;">
            Imię<br />
            Nazwisko<br />
            Email<br />
            Hasło
        </div>
        <div style="width: 86%; float: right; clear: none;">
            <div style="width: 27%; float: left; clear: none; margin-right: 7px;">
                <asp:TextBox ID="TextBoxFirstName" runat="server" Width="100%" CssClass="fontSize"></asp:TextBox>
                <br />
                <asp:TextBox ID="TextBoxLastName" runat="server" Width="100%" CssClass="fontSize"></asp:TextBox>
                <br />
                <asp:TextBox ID="TextBoxEmail" runat="server" Width="100%" CssClass="fontSize"></asp:TextBox>
                <asp:TextBox ID="TextBoxPassword" runat="server" Width="100%" TextMode="Password" CssClass="fontSize"></asp:TextBox>
                <br />
                <asp:Button ID="RegisterButton" runat="server" Text="Rejestruj" CssClass="fontSize" OnClick="RegisterButton_Click" />
            </div>
            <div style="width: 70%; padding-left: 5%;">

                <asp:Label ID="LabelErrorFirstName" runat="server" ForeColor="Red" Text="Podaj imię" Visible="False" Font-Size="1em"></asp:Label>
                <br />

                <asp:Label ID="LabelErrorLastName" runat="server" ForeColor="Red" Text="Podaj Nazwisko" Visible="False" Font-Size="1em"></asp:Label>
                <br />

                <asp:Label ID="LabelErrorEmail" runat="server" ForeColor="Red" Text="Podaj email" Visible="False" Font-Size="1em"></asp:Label>
                <br />
                <asp:Label ID="LabelErrorPassword" runat="server" ForeColor="Red" Text="Podaj hasło" Visible="False" Font-Size="1em"></asp:Label>

            </div>
        </div>
    </!--div--%>
    <asp:Table ID="Table1" runat="server" Width="100%" >
        <asp:TableRow runat="server">
            <asp:TableCell runat="server" Width="15%">Imie</asp:TableCell>
            <asp:TableCell runat="server" Width="30%">
                <asp:TextBox ID="TextBoxFirstName" runat="server" Width="100%" CssClass="fontSize"></asp:TextBox>
            
</asp:TableCell>
            <asp:TableCell runat="server" Width="55%"> 
                <asp:Label ID="LabelErrorFirstName" runat="server" ForeColor="Red" Text="Podaj imię" Visible="False" Font-Size="1em" CssClass="errorLabelPadding"></asp:Label>
            
</asp:TableCell>
        </asp:TableRow>
        <asp:TableRow runat="server">
            <asp:TableCell ID="TableCell1" runat="server" Width="15%">
                Nazwisko
            </asp:TableCell>
            <asp:TableCell ID="TableCell2" runat="server" Width="30%">
                <asp:TextBox ID="TextBoxLastName" runat="server" Width="100%" CssClass="fontSize"></asp:TextBox>
            
</asp:TableCell>
            <asp:TableCell ID="TableCell3" runat="server" Width="55%">
                <asp:Label ID="LabelErrorLastName" runat="server" ForeColor="Red" Text="Podaj Nazwisko" Visible="False" Font-Size="1em" CssClass="errorLabelPadding"></asp:Label>
            
</asp:TableCell>
        </asp:TableRow>
        <asp:TableRow runat="server">
            <asp:TableCell ID="TableCell4" runat="server" Width="15%">
                Email
            </asp:TableCell>
            <asp:TableCell ID="TableCell5" runat="server" Width="30%">
                <asp:TextBox ID="TextBoxEmail" runat="server" Width="100%" CssClass="fontSize"></asp:TextBox>
            
</asp:TableCell>
            <asp:TableCell ID="TableCell6" runat="server" Width="55%">
                <asp:Label ID="LabelErrorEmail" runat="server" ForeColor="Red" Text="Podaj email" Visible="False" Font-Size="1em" CssClass="errorLabelPadding"></asp:Label>
            
</asp:TableCell>
        </asp:TableRow>
        <asp:TableRow runat="server">
            <asp:TableCell ID="TableCell7" runat="server" Width="15%">
                Hasło
            </asp:TableCell>
            <asp:TableCell ID="TableCell8" runat="server" Width="30%">
                <asp:TextBox ID="TextBoxPassword" runat="server" Width="100%" TextMode="Password" CssClass="fontSize"></asp:TextBox>
            
</asp:TableCell>
            <asp:TableCell ID="TableCell9" runat="server" Width="55%">
                <asp:Label ID="LabelErrorPassword" runat="server" ForeColor="Red" Text="Podaj hasło" Visible="False" Font-Size="1em" CssClass="errorLabelPadding"></asp:Label>
            
</asp:TableCell>
        </asp:TableRow>
        <asp:TableRow runat="server">
            <asp:TableCell ID="TableCell10" runat="server" Width="15%"></asp:TableCell>
            <asp:TableCell ID="TableCell11" runat="server" HorizontalAlign="Right" Width="30%">
                <asp:Button ID="RegisterButton" runat="server" Text="Rejestruj" CssClass="fontSize" OnClick="RegisterButton_Click" />
</asp:TableCell>
            <asp:TableCell ID="TableCell12" runat="server" Width="55%"></asp:TableCell>
        </asp:TableRow>
        <asp:TableRow runat="server">
            <asp:TableCell ID="TableCell13" runat="server" ColumnSpan="3">
                <asp:Label ID="LabelError" runat="server" ForeColor="Red" Text="Upewnij się czy podany email należy do @uj.edu.pl" Visible="False" Font-Size="1em"></asp:Label>
            
</asp:TableCell>
        </asp:TableRow>
    </asp:Table>
</asp:Content>
